﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoadTeam.Enums;
using System.Reflection;
using System.Data;

namespace RoadTeam.SysInterface
{

    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.ISmStaff _iSmStaff;

        public static ISmStaff CreateSmStaff()
        {
            if (_iSmStaff == null)
            {
                string className = GlobalConfig.RtSystemPath + ".SM.Staff_Sys";
                _iSmStaff = (ISmStaff)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iSmStaff;
        }
    }



    public interface ISmStaff
    {

        String GetStaffID(String StaffIdentifier);

        bool UpdateStaffTable(DataTable dt);

        DataTable GetStaffTable();


    }
}
